#!/bin/bash

# = remove_comma.sh
#
# Author::    takahiro
# Copyright:: takahiro
# License::   GPL
#

# == Version
#
# * 2014-02-10 1.00 (takahiro) 
#

# == Summary
# 
# This file is for
#

# == Interface
#
# * input
# **
# * output
# **
#

# == Example
#

# == Description
#
# This file is for
#


function usage { 
  echo "usage : $0 [input file]"
  exit
}


while getopts "h" options
do
  case $options in
    h | * ) usage ;;
  esac
done
shift $(( $OPTIND - 1 ))


if [ $# -eq 0 ]; then
  INPUT=$(cat -)
elif [ $# -eq 1 ]; then
  INPUT=$(cat $1)
else
  usage
fi

echo -n "$INPUT" | sed -e "s/,//g"

